package com.Maykk.Demo01;

public class AnimalTest {
    public static void main(String[] args) {
//        抽象类不能实例化对象，只通过子类调用
//        ————Animal animal = new Animal();————
        Cat cat = new Cat();
        cat.eat();
        cat.sleep();
        cat.setType("小肆");
        System.out.println(cat.getType());
    }
}
